//
//  AttendeeContent.swift
//  CleanArchitecture
//
//  Created by siri on 2024/11/13.
//  Copyright © 2024 Tuan Truong. All rights reserved.
//

import SwiftUI

struct AttendeeContent: View {
    public var infoCode: Int
    @State private var isChoose = false
   
    var body: some View {
        VStack(alignment: .leading, spacing: 0) {
            VStack(spacing: 0){
                HStack(spacing: 0) {
                    Text("刘一").font(Font.g_font_body_regular16)
                        .foregroundColor(Color.g_color_font_primary)
                    Spacer()
                    Toggle("", isOn: $isChoose)
                        .toggleStyle(CheckBoxToggleStyle(shape: .square)).padding(.trailing,30)
//                        .frame(alignment: .leading)
                }.frame(width: 280, height: 50)
                Divider().frame(width: 280)
            }
            Spacer()
        }.frame( height:600, alignment: .top)
    }
}

#Preview {
    AttendeeContent(infoCode: 1)
}
